<script setup lang="ts">
import useUserStore from "@/store/modules/user"
import { getTime } from "@/utils/time";
const userStore = useUserStore()
</script>
<template>
    <el-card>
        <div class="box">
            <img :src="userStore.avatar" alt="图片">
            <div>
                <h3 class="name">{{ getTime() }}好{{ userStore.userName }}</h3>
                <p class="title">硅谷甄选平台</p>
            </div>
        </div>
    </el-card>
    <div class="svg">
        <svg-icon name="welcome" width="600px" height="600px"></svg-icon>
    </div>
</template>
<style scoped lang="scss">
.box {
    display: flex;
    align-items: center;

    .img {
        width: 100px;
        height: 100px;
        border-radius: 50%;
    }

    .name {
        font-size: 30px;
        margin-left: 20px;
        margin-bottom: 20px;
        font-weight: 700;
    }

    .title {
        font-size: 20px;
        margin-left: 20px;
        //灰色
        color: #999;
        //斜体
        font-style: italic;
    }
}

.svg {
    display: flex;
    justify-content: center;
    margin-top: 100px;
}
</style>